﻿<!DOCTYPE html>
<html>
 <head> 
  <meta charset="UTF-8" /> 
  <title>新增公众号</title> 
  <link rel="stylesheet" href="../../assets/js/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="../../assets/css/global.css" media="all">
  <link rel="stylesheet" href="../../assets/js/font-awesome/css/font-awesome.min.css">
 </head> 
 <body> 
  <div class="admin-main">  
      <form class="layui-form" action="/api/wechat/wechataccount/wechat_account_save">
          <input type="hidden" name="type" value="menu" />

          <div class="layui-form-item">
              <label class="layui-form-label">公众号名称</label>
              <div class="layui-input-block">
                  <input type="text" class="layui-input" bindattr="wname" name="wname" lay-verify="required" placeholder="请输入公众号名称" />
              </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">appid</label>
              <div class="layui-input-block">
                  <input type="text" class="layui-input" bindattr="appid" name="appid" lay-verify="required" placeholder="请输入appid" />
              </div>
          </div>

          <div class="layui-form-item">
              <label class="layui-form-label">appsecrect</label>
              <div class="layui-input-block">
                  <input type="text" class="layui-input" bindattr="appsecrect" name="appsecrect" lay-verify="required" placeholder="请输入appsecrect" />
              </div>
          </div>

          <div class="layui-form-item">
              <label class="layui-form-label">活动状态</label>

              <div class="layui-input-block">
                  <select bindattr="promotestatus" name="promotestatus" lay-verify="required">
                      <option value="1">启用</option>
                      <option value="-1">停用</option>
                  </select>

              </div>
          </div>

          <div class="layui-form-item">
              <label class="layui-form-label">状态</label>
              <div class="layui-input-block">
                  <select bindattr="status" name="status" lay-verify="required">
                      <option value="1">启用</option>
                      <option value="-1">停用</option>
                  </select>
              </div>
          </div>

          <div class="layui-form-item">
              <div class="layui-input-block">
                  <input type="button" class="layui-btn J_ajaxSubmit" value="保存" />
                  <input type="reset" class="layui-btn layui-btn-primary" value="重置" />
              </div>
          </div>
      </form> 
  </div> 
 </body>
 <script type="text/javascript" src="../../assets/js/layui/layui.js"></script>
<script>
    //var containLeaf = false;
    //var type = "menus";
	layui.config({
		version : "1.0.0",
		base: 'js/'
	}).use('wechataccount', function () {
		 
	});
</script>
</html>